#include"CRectangle.h"

//Lop CRectangle------------------
void CRectangle::setValues(int a, int b)
{
	width = a;
	height = b;
}

int CRectangle::area()
{
	return (width*height);
}


//Lop CTriangle------------------------
void CTriangle::setValues(int a, int b)
{
	width = a;
	height = b;
}

int CTriangle::area()
{
	return (width*height / 2);
}


